<?php /* Smarty version 2.6.19, created on 2014-12-02 02:54:11
         compiled from message.html */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>我要留言</title>
	<link rel="stylesheet" type="text/css" href="./css/base.css">
	<link rel="shortcut icon" type="image/x-icon" href="./img/favicon.ico" /> 	
</head>
<style type="text/css">
	.header{width: 100%;height: 300px;background-color: #3c3c3c;text-align: center;}
	.header img{width: 100px;height: 100px;border-radius: 50%;margin-top: 100px;}
	#btn{color: #fff;font-size: 14px;margin-top: 34px;}
	#btn:hover{color: #3385FF;cursor:pointer;}
	#form{width: 100%;height: 100px;background-color: #4c4c4c;overflow: hidden;}
	#form textarea{resize:none;height: 60px;width:400px;padding-right: 160px;text-indent: 4px;}
	#form input{width: 150px;height: 60px;border: none;position: absolute;right: 20px;top: 20px;}
	#form .center{width: 560px;margin: 0 auto;height: 80px;padding:20px;position: relative;}
	.box{width: 600px;height: auto;margin: 0 auto;}
	.box ul li{height: 100px;border-bottom: 1px solid #efefef;position: relative;display: block;}
	.box ul li .img{width: 60px;height: 60px;border-radius: 50%;background-color: #ccc;float: left;margin:20px 20px;}
	.box ul li .cont{width: 400px;height: 60px;float: left;padding-top: 40px;color: #666}
	.box ul li .date{position: absolute;right: 100px;bottom: 0;width: auto;height: 20px;text-align: right;font-size: 12px;color: #999;}
	.box ul li .address{position: absolute;right: 17px;bottom: 0;width: auto;height: 20px;text-align: right;font-size: 12px;color: #999;border: 1px solid red}
	.loading{width: 400px;height: 40px; margin:0 auto;color: #999;line-height: 40px;text-align: center;}
</style>
<body>
	<div class="header">
		<img src="./img/logo.png">
		<div id="btn">点我留言</div>
	</div>
	<div id="form">	
	    <div class="center">	
			<form action="index.php?action=putmes" method="post">
				<textarea name="cont"></textarea>
				<input type="submit" value="确定">
			</form>
	    </div>
	</div>
	<div class="box">
		<ul>
			<?php $_from = $this->_tpl_vars['info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
			<li>
				<div class="img"></div>
				<div class="cont"><?php echo $this->_tpl_vars['item'][1]; ?>
</div>
				<div class="date"><?php echo $this->_tpl_vars['item'][2]; ?>
</div>
				<div class="address"><?php echo $this->_tpl_vars['item'][3]; ?>
</div>
			</li>
			<?php endforeach; endif; unset($_from); ?>

		</ul>
	</div>
	<!-- 这里要适一个js动画 -->
	<div class="loading">正在加载····</div>
</body>
<script type="text/javascript">

</script>
</html>